<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="utf-8" />
    <title>linear-gradient()7.18渐变练习</title>
    <meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" />
    <style>
        div {
            width: 200px;
            height: 100px;
            margin-top: 10px;
            border: 1px solid #ddd;
        }
        .test {
            background: linear-gradient(#fff, #333);
        }
        .test2 {
            background: linear-gradient(#000, #f00 50%, #090);
        }
        .test3 {
            background: linear-gradient(0deg, #000 20%, #f00 50%, #090 80%);
        }
        .test4 {
            background: linear-gradient(45deg, #000, #f00 50%, #090);
        }
        .test5 {
            background: linear-gradient(to top right, #000, #f00 50%, #090);
        }
        .ywg{
            width: 150px;
            height:200px;
            background:linear-gradient(#bdf7ff 0%,#ffffff 70%, #daff40 71%);
            border:none;
            position: relative;
        }
        .circle{
            width: 15px;
            height:15px;
            background: -webkit-radial-gradient(5px 5px, #5cabff, #000);
            border-radius: 50%;
            border: none;
            transition: all 0.3s;
            position: absolute;
            top:10px;
        }
        @keyframes animations1 {
            60%{ transform: translateY(-20px) }
            80%{transform: translateY(60px)}
            100%{transform: translateY(100px);}
        }
        .ywg .circle{
            animation: animations1 3s;
            animation-iteration-count: 1;
            animation-fill-mode: forwards;
            /*top:35px;*/
        }
    </style>
</head>
<body>
<!--<div class="test"></div>-->
<!--<div class="test2"></div>-->
<!--<div class="test3"></div>-->
<!--<div class="test4"></div>-->
<!--<div class="test5"></div>-->
<div class="ywg">
    <div class="circle">

    </div>
</div>
<!--一个球的制作-->

</body>
</html>